package com.sinotrans.test;

public class Rectangle extends Square{

	private double wid;
    Rectangle(double len,double wid){
            super(len);
            this.wid = wid;
    }
    public double getArea(){
            return wid*len;
    }
    public double getPan(){
            return (wid+len)*2;
    }

}
